|
Cytosim
PI
Cytoskeleton Simulator
|
Simple operations on C++ streams.
Functions | |
| void | clean_stream (std::ostream &, std::istream &) |
| remove non-conventional characters | |
| void | diff_stream (std::ostream &, std::istream &val, std::istream &ref) |
export lines of val that are not identical to ref | |
| void | skip_lines (std::ostream &, std::istream &, char skip) |
copy lines that do not start with character skip | |
| void | prefix_lines (std::ostream &, std::istream &, std::string const &prefix, char keep, char skip) |
add insert before every line, but skip lines that start with skip | |
| void | show_line (std::ostream &, std::istream &, std::streampos pos) |
print the line of istream corresponding to position pos, with line number More... | |
| std::string | show_line (std::istream &, std::streampos) |
same as show_line(), but output is returned as a string | |
| void | show_lines (std::ostream &, std::istream &, std::streampos start, std::streampos end) |
extract the lines located between start and end, with line numbers More... | |
| std::string | show_lines (std::istream &, std::streampos start, std::streampos end) |
| same as show_lines(), but output is returned as a string | |
| int | find_and_replace (std::string &src, std::string const &fnd, std::string const &rep) |
replace in src all occurences of fnd by rep | |
| void show_line | ( | std::ostream & | os, |
| std::istream & | is, | ||
| std::streampos | pos | ||
| ) |
show_line() will output one line extracted from `is', and indicate the position pos with a arrowhead in a second line.
| void show_lines | ( | std::ostream & | os, |
| std::istream & | is, | ||
| std::streampos | start, | ||
| std::streampos | end | ||
| ) |
Output enough lines to cover the area specified by [start, end]. Each line is printed with a line number